<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>
<body>
  <div id="app">
     <p>{{msg}}</p>
     <div v-text="msg"></div>
     <input type="text" v-model="msg" />
     <p>v-html</p>
     <div v-html="msg"></div>
     <div v-on:click="foo">click</div>
  </div>
  <script src="dep.js"></script>
  <script src="watcher.js"></script>
  <script src="complier.js"></script>
  <script src="observer.js"></script>

  <script src="index.js"></script>
  <script>
    let vm = new Vue({
      el: '#app',
      data: {
        msg: 'hello world',
        person: {
          name: 'wang'
        },
        methods: {
          foo() {
            console.log(this.msg)
          }
        },
      }
    })
  </script>
</body>
</html>